<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, user-scalable=no">
  <meta name="description" content="API docs for the createElementUpgrader method from the HtmlDocument class, for the Dart programming language.">
  <title>createElementUpgrader method - HtmlDocument class - dart:html library - Dart API</title>
  <!-- required because all the links are pseudo-absolute -->
  <base href="../..">

  <link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:500,400i,400,300|Source+Sans+Pro:400,300,700" rel="stylesheet">
  <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
  <link rel="stylesheet" href="static-assets/github.css">
  <link rel="stylesheet" href="static-assets/styles.css">
  <link rel="icon" href="static-assets/favicon.png">
  <!-- header placeholder -->
</head>

<body>

<div id="overlay-under-drawer"></div>

<header id="title">
  <button id="sidenav-left-toggle" type="button">&nbsp;</button>
  <ol class="breadcrumbs gt-separated dark hidden-xs">
    <li><a href="index.html">flutter_form_builder</a></li>
    <li><a href="dart-html/dart-html-library.html">dart:html</a></li>
    <li><a href="dart-html/HtmlDocument-class.html">HtmlDocument</a></li>
    <li class="self-crumb">createElementUpgrader method</li>
  </ol>
  <div class="self-name">createElementUpgrader</div>
  <form class="search navbar-right" role="search">
    <input type="text" id="search-box" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
  </form>
</header>

<main>

  <div id="dartdoc-sidebar-left" class="col-xs-6 col-sm-3 col-md-2 sidebar sidebar-offcanvas-left">
    <header id="header-search-sidebar" class="hidden-l">
      <form class="search-sidebar" role="search">
        <input type="text" id="search-sidebar" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
      </form>
    </header>
    
    <ol class="breadcrumbs gt-separated dark hidden-l" id="sidebar-nav">
      <li><a href="index.html">flutter_form_builder</a></li>
      <li><a href="dart-html/dart-html-library.html">dart:html</a></li>
      <li><a href="dart-html/HtmlDocument-class.html">HtmlDocument</a></li>
      <li class="self-crumb">createElementUpgrader method</li>
    </ol>
    
    <h5>HtmlDocument class</h5>
    <ol>
    
    
        <li class="section-title">
            <a href="dart-html/HtmlDocument-class.html#instance-properties">Properties</a>
        </li>
        <li><a href="dart-html/HtmlDocument/body.html">body</a></li>
        <li><a href="dart-html/HtmlDocument/head.html">head</a></li>
        <li><a href="dart-html/HtmlDocument/lastModified.html">lastModified</a></li>
        <li><a href="dart-html/HtmlDocument/onVisibilityChange.html">onVisibilityChange</a></li>
        <li><a href="dart-html/HtmlDocument/preferredStylesheetSet.html">preferredStylesheetSet</a></li>
        <li><a href="dart-html/HtmlDocument/referrer.html">referrer</a></li>
        <li><a href="dart-html/HtmlDocument/selectedStylesheetSet.html">selectedStylesheetSet</a></li>
        <li><a href="dart-html/HtmlDocument/styleSheets.html">styleSheets</a></li>
        <li><a href="dart-html/HtmlDocument/title.html">title</a></li>
        <li class="inherited"><a href="dart-html/Document/activeElement.html">activeElement</a></li>
        <li class="inherited"><a href="dart-html/Document/addressSpace.html">addressSpace</a></li>
        <li class="inherited"><a href="dart-html/Node/baseUri.html">baseUri</a></li>
        <li class="inherited"><a href="dart-html/Node/childNodes.html">childNodes</a></li>
        <li class="inherited"><a href="dart-html/Document/contentType.html">contentType</a></li>
        <li class="inherited"><a href="dart-html/Document/cookie.html">cookie</a></li>
        <li class="inherited"><a href="dart-html/Document/currentScript.html">currentScript</a></li>
        <li class="inherited"><a href="dart-html/Document/documentElement.html">documentElement</a></li>
        <li class="inherited"><a href="dart-html/Document/domain.html">domain</a></li>
        <li class="inherited"><a href="dart-html/Node/firstChild.html">firstChild</a></li>
        <li class="inherited"><a href="dart-html/Document/fonts.html">fonts</a></li>
        <li class="inherited"><a href="dart-html/Document/fullscreenElement.html">fullscreenElement</a></li>
        <li class="inherited"><a href="dart-html/Document/fullscreenEnabled.html">fullscreenEnabled</a></li>
        <li class="inherited"><a href="dart-core/Object/hashCode.html">hashCode</a></li>
        <li class="inherited"><a href="dart-html/Document/hidden.html">hidden</a></li>
        <li class="inherited"><a href="dart-html/Document/implementation.html">implementation</a></li>
        <li class="inherited"><a href="dart-html/Node/isConnected.html">isConnected</a></li>
        <li class="inherited"><a href="dart-html/Node/lastChild.html">lastChild</a></li>
        <li class="inherited"><a href="dart-html/Node/nextNode.html">nextNode</a></li>
        <li class="inherited"><a href="dart-html/Node/nodeName.html">nodeName</a></li>
        <li class="inherited"><a href="dart-html/Node/nodes.html">nodes</a></li>
        <li class="inherited"><a href="dart-html/Node/nodeType.html">nodeType</a></li>
        <li class="inherited"><a href="dart-html/Node/nodeValue.html">nodeValue</a></li>
        <li class="inherited"><a href="dart-html/EventTarget/on.html">on</a></li>
        <li class="inherited"><a href="dart-html/Document/onAbort.html">onAbort</a></li>
        <li class="inherited"><a href="dart-html/Document/onBeforeCopy.html">onBeforeCopy</a></li>
        <li class="inherited"><a href="dart-html/Document/onBeforeCut.html">onBeforeCut</a></li>
        <li class="inherited"><a href="dart-html/Document/onBeforePaste.html">onBeforePaste</a></li>
        <li class="inherited"><a href="dart-html/Document/onBlur.html">onBlur</a></li>
        <li class="inherited"><a href="dart-html/Document/onCanPlay.html">onCanPlay</a></li>
        <li class="inherited"><a href="dart-html/Document/onCanPlayThrough.html">onCanPlayThrough</a></li>
        <li class="inherited"><a href="dart-html/Document/onChange.html">onChange</a></li>
        <li class="inherited"><a href="dart-html/Document/onClick.html">onClick</a></li>
        <li class="inherited"><a href="dart-html/Document/onContextMenu.html">onContextMenu</a></li>
        <li class="inherited"><a href="dart-html/Document/onCopy.html">onCopy</a></li>
        <li class="inherited"><a href="dart-html/Document/onCut.html">onCut</a></li>
        <li class="inherited"><a href="dart-html/Document/onDoubleClick.html">onDoubleClick</a></li>
        <li class="inherited"><a href="dart-html/Document/onDrag.html">onDrag</a></li>
        <li class="inherited"><a href="dart-html/Document/onDragEnd.html">onDragEnd</a></li>
        <li class="inherited"><a href="dart-html/Document/onDragEnter.html">onDragEnter</a></li>
        <li class="inherited"><a href="dart-html/Document/onDragLeave.html">onDragLeave</a></li>
        <li class="inherited"><a href="dart-html/Document/onDragOver.html">onDragOver</a></li>
        <li class="inherited"><a href="dart-html/Document/onDragStart.html">onDragStart</a></li>
        <li class="inherited"><a href="dart-html/Document/onDrop.html">onDrop</a></li>
        <li class="inherited"><a href="dart-html/Document/onDurationChange.html">onDurationChange</a></li>
        <li class="inherited"><a href="dart-html/Document/onEmptied.html">onEmptied</a></li>
        <li class="inherited"><a href="dart-html/Document/onEnded.html">onEnded</a></li>
        <li class="inherited"><a href="dart-html/Document/onError.html">onError</a></li>
        <li class="inherited"><a href="dart-html/Document/onFocus.html">onFocus</a></li>
        <li class="inherited"><a href="dart-html/Document/onFullscreenChange.html">onFullscreenChange</a></li>
        <li class="inherited"><a href="dart-html/Document/onFullscreenError.html">onFullscreenError</a></li>
        <li class="inherited"><a href="dart-html/Document/onInput.html">onInput</a></li>
        <li class="inherited"><a href="dart-html/Document/onInvalid.html">onInvalid</a></li>
        <li class="inherited"><a href="dart-html/Document/onKeyDown.html">onKeyDown</a></li>
        <li class="inherited"><a href="dart-html/Document/onKeyPress.html">onKeyPress</a></li>
        <li class="inherited"><a href="dart-html/Document/onKeyUp.html">onKeyUp</a></li>
        <li class="inherited"><a href="dart-html/Document/onLoad.html">onLoad</a></li>
        <li class="inherited"><a href="dart-html/Document/onLoadedData.html">onLoadedData</a></li>
        <li class="inherited"><a href="dart-html/Document/onLoadedMetadata.html">onLoadedMetadata</a></li>
        <li class="inherited"><a href="dart-html/Document/onMouseDown.html">onMouseDown</a></li>
        <li class="inherited"><a href="dart-html/Document/onMouseEnter.html">onMouseEnter</a></li>
        <li class="inherited"><a href="dart-html/Document/onMouseLeave.html">onMouseLeave</a></li>
        <li class="inherited"><a href="dart-html/Document/onMouseMove.html">onMouseMove</a></li>
        <li class="inherited"><a href="dart-html/Document/onMouseOut.html">onMouseOut</a></li>
        <li class="inherited"><a href="dart-html/Document/onMouseOver.html">onMouseOver</a></li>
        <li class="inherited"><a href="dart-html/Document/onMouseUp.html">onMouseUp</a></li>
        <li class="inherited"><a href="dart-html/Document/onMouseWheel.html">onMouseWheel</a></li>
        <li class="inherited"><a href="dart-html/Document/onPaste.html">onPaste</a></li>
        <li class="inherited"><a href="dart-html/Document/onPause.html">onPause</a></li>
        <li class="inherited"><a href="dart-html/Document/onPlay.html">onPlay</a></li>
        <li class="inherited"><a href="dart-html/Document/onPlaying.html">onPlaying</a></li>
        <li class="inherited"><a href="dart-html/Document/onPointerLockChange.html">onPointerLockChange</a></li>
        <li class="inherited"><a href="dart-html/Document/onPointerLockError.html">onPointerLockError</a></li>
        <li class="inherited"><a href="dart-html/Document/onRateChange.html">onRateChange</a></li>
        <li class="inherited"><a href="dart-html/Document/onReadyStateChange.html">onReadyStateChange</a></li>
        <li class="inherited"><a href="dart-html/Document/onReset.html">onReset</a></li>
        <li class="inherited"><a href="dart-html/Document/onResize.html">onResize</a></li>
        <li class="inherited"><a href="dart-html/Document/onScroll.html">onScroll</a></li>
        <li class="inherited"><a href="dart-html/Document/onSearch.html">onSearch</a></li>
        <li class="inherited"><a href="dart-html/Document/onSecurityPolicyViolation.html">onSecurityPolicyViolation</a></li>
        <li class="inherited"><a href="dart-html/Document/onSeeked.html">onSeeked</a></li>
        <li class="inherited"><a href="dart-html/Document/onSeeking.html">onSeeking</a></li>
        <li class="inherited"><a href="dart-html/Document/onSelect.html">onSelect</a></li>
        <li class="inherited"><a href="dart-html/Document/onSelectionChange.html">onSelectionChange</a></li>
        <li class="inherited"><a href="dart-html/Document/onSelectStart.html">onSelectStart</a></li>
        <li class="inherited"><a href="dart-html/Document/onStalled.html">onStalled</a></li>
        <li class="inherited"><a href="dart-html/Document/onSubmit.html">onSubmit</a></li>
        <li class="inherited"><a href="dart-html/Document/onSuspend.html">onSuspend</a></li>
        <li class="inherited"><a href="dart-html/Document/onTimeUpdate.html">onTimeUpdate</a></li>
        <li class="inherited"><a href="dart-html/Document/onTouchCancel.html">onTouchCancel</a></li>
        <li class="inherited"><a href="dart-html/Document/onTouchEnd.html">onTouchEnd</a></li>
        <li class="inherited"><a href="dart-html/Document/onTouchMove.html">onTouchMove</a></li>
        <li class="inherited"><a href="dart-html/Document/onTouchStart.html">onTouchStart</a></li>
        <li class="inherited"><a href="dart-html/Document/onVolumeChange.html">onVolumeChange</a></li>
        <li class="inherited"><a href="dart-html/Document/onWaiting.html">onWaiting</a></li>
        <li class="inherited"><a href="dart-html/Document/origin.html">origin</a></li>
        <li class="inherited"><a href="dart-html/Node/ownerDocument.html">ownerDocument</a></li>
        <li class="inherited"><a href="dart-html/Node/parent.html">parent</a></li>
        <li class="inherited"><a href="dart-html/Node/parentNode.html">parentNode</a></li>
        <li class="inherited"><a href="dart-html/Document/pointerLockElement.html">pointerLockElement</a></li>
        <li class="inherited"><a href="dart-html/Node/previousNode.html">previousNode</a></li>
        <li class="inherited"><a href="dart-html/Document/readyState.html">readyState</a></li>
        <li class="inherited"><a href="dart-html/Document/rootElement.html">rootElement</a></li>
        <li class="inherited"><a href="dart-html/Document/rootScroller.html">rootScroller</a></li>
        <li class="inherited"><a href="dart-core/Object/runtimeType.html">runtimeType</a></li>
        <li class="inherited"><a href="dart-html/Document/scrollingElement.html">scrollingElement</a></li>
        <li class="inherited"><a href="dart-html/Document/suborigin.html">suborigin</a></li>
        <li class="inherited"><a class="deprecated" href="dart-html/Document/supportsRegister.html">supportsRegister</a></li>
        <li class="inherited"><a href="dart-html/Document/supportsRegisterElement.html">supportsRegisterElement</a></li>
        <li class="inherited"><a href="dart-html/Node/text.html">text</a></li>
        <li class="inherited"><a href="dart-html/Document/timeline.html">timeline</a></li>
        <li class="inherited"><a href="dart-html/Document/visibilityState.html">visibilityState</a></li>
        <li class="inherited"><a href="dart-html/Document/window.html">window</a></li>
    
        <li class="section-title"><a href="dart-html/HtmlDocument-class.html#instance-methods">Methods</a></li>
        <li><a href="dart-html/HtmlDocument/caretRangeFromPoint.html">caretRangeFromPoint</a></li>
        <li><a href="dart-html/HtmlDocument/createElementUpgrader.html">createElementUpgrader</a></li>
        <li><a href="dart-html/HtmlDocument/elementFromPoint.html">elementFromPoint</a></li>
        <li><a href="dart-html/HtmlDocument/exitFullscreen.html">exitFullscreen</a></li>
        <li><a class="deprecated" href="dart-html/HtmlDocument/register.html">register</a></li>
        <li><a href="dart-html/HtmlDocument/registerElement2.html">registerElement2</a></li>
        <li class="inherited"><a href="dart-html/EventTarget/addEventListener.html">addEventListener</a></li>
        <li class="inherited"><a href="dart-html/Document/adoptNode.html">adoptNode</a></li>
        <li class="inherited"><a href="dart-html/Node/append.html">append</a></li>
        <li class="inherited"><a href="dart-html/Node/clone.html">clone</a></li>
        <li class="inherited"><a href="dart-html/Node/contains.html">contains</a></li>
        <li class="inherited"><a href="dart-html/Document/createDocumentFragment.html">createDocumentFragment</a></li>
        <li class="inherited"><a href="dart-html/Document/createElement.html">createElement</a></li>
        <li class="inherited"><a href="dart-html/Document/createElementNS.html">createElementNS</a></li>
        <li class="inherited"><a href="dart-html/Document/createRange.html">createRange</a></li>
        <li class="inherited"><a href="dart-html/EventTarget/dispatchEvent.html">dispatchEvent</a></li>
        <li class="inherited"><a href="dart-html/Document/elementsFromPoint.html">elementsFromPoint</a></li>
        <li class="inherited"><a href="dart-html/Document/execCommand.html">execCommand</a></li>
        <li class="inherited"><a href="dart-html/Document/exitPointerLock.html">exitPointerLock</a></li>
        <li class="inherited"><a href="dart-html/Document/getAnimations.html">getAnimations</a></li>
        <li class="inherited"><a href="dart-html/Document/getElementById.html">getElementById</a></li>
        <li class="inherited"><a href="dart-html/Document/getElementsByClassName.html">getElementsByClassName</a></li>
        <li class="inherited"><a href="dart-html/Document/getElementsByName.html">getElementsByName</a></li>
        <li class="inherited"><a href="dart-html/Document/getElementsByTagName.html">getElementsByTagName</a></li>
        <li class="inherited"><a href="dart-html/Node/getRootNode.html">getRootNode</a></li>
        <li class="inherited"><a href="dart-html/Node/hasChildNodes.html">hasChildNodes</a></li>
        <li class="inherited"><a href="dart-html/Document/importNode.html">importNode</a></li>
        <li class="inherited"><a href="dart-html/Node/insertAllBefore.html">insertAllBefore</a></li>
        <li class="inherited"><a href="dart-html/Node/insertBefore.html">insertBefore</a></li>
        <li class="inherited"><a href="dart-core/Object/noSuchMethod.html">noSuchMethod</a></li>
        <li class="inherited"><a href="dart-html/Document/queryCommandEnabled.html">queryCommandEnabled</a></li>
        <li class="inherited"><a href="dart-html/Document/queryCommandIndeterm.html">queryCommandIndeterm</a></li>
        <li class="inherited"><a href="dart-html/Document/queryCommandState.html">queryCommandState</a></li>
        <li class="inherited"><a href="dart-html/Document/queryCommandSupported.html">queryCommandSupported</a></li>
        <li class="inherited"><a href="dart-html/Document/queryCommandValue.html">queryCommandValue</a></li>
        <li class="inherited"><a href="dart-html/Document/querySelector.html">querySelector</a></li>
        <li class="inherited"><a href="dart-html/Document/querySelectorAll.html">querySelectorAll</a></li>
        <li class="inherited"><a href="dart-html/Document/registerElement.html">registerElement</a></li>
        <li class="inherited"><a href="dart-html/Node/remove.html">remove</a></li>
        <li class="inherited"><a href="dart-html/EventTarget/removeEventListener.html">removeEventListener</a></li>
        <li class="inherited"><a href="dart-html/Node/replaceWith.html">replaceWith</a></li>
        <li class="inherited"><a href="dart-html/Node/toString.html">toString</a></li>
    
        <li class="section-title inherited"><a href="dart-html/HtmlDocument-class.html#operators">Operators</a></li>
        <li class="inherited"><a href="dart-core/Object/operator_equals.html">operator ==</a></li>
    
    
    
        <li class="section-title"><a href="dart-html/HtmlDocument-class.html#constants">Constants</a></li>
        <li><a href="dart-html/HtmlDocument/visibilityChangeEvent-constant.html">visibilityChangeEvent</a></li>
    
    
    </ol>
  </div><!--/.sidebar-offcanvas-->

  <div id="dartdoc-main-content" class="col-xs-12 col-sm-9 col-md-8 main-content">
      <div><h1><span class="kind-method">createElementUpgrader</span> method</h1></div>

    <section class="multi-line-signature">
      <span class="returntype"><a href="dart-html/ElementUpgrader-class.html">ElementUpgrader</a></span>
            <span class="name ">createElementUpgrader</span>
(<wbr><span class="parameter" id="createElementUpgrader-param-type"><span class="type-annotation"><a href="dart-core/Type-class.html">Type</a></span> <span class="parameter-name">type</span>, {</span> <span class="parameter" id="createElementUpgrader-param-extendsTag"><span class="type-annotation"><a href="dart-core/String-class.html">String</a></span> <span class="parameter-name">extendsTag</span></span> })
      
    </section>
    <section class="desc markdown">
      <p>Creates an element upgrader which can be used to change the Dart wrapper
type for elements.</p>
<p>The type specified must be a subclass of HtmlElement, when an element is
upgraded then the created constructor will be invoked on that element.</p>
<p>If the type is not a direct subclass of HtmlElement then the extendsTag
parameter must be provided.</p>
    </section>
    
    <section class="summary source-code" id="source">
      <h2><span>Implementation</span></h2>
      <pre class="language-dart"><code class="language-dart">ElementUpgrader createElementUpgrader(Type type, {String extendsTag}) {
  return new _JSElementUpgrader(this, type, extendsTag);
}</code></pre>
    </section>

  </div> <!-- /.main-content -->

  <div id="dartdoc-sidebar-right" class="col-xs-6 col-sm-6 col-md-2 sidebar sidebar-offcanvas-right">
  </div><!--/.sidebar-offcanvas-->

</main>

<footer>
  <span class="no-break">
    flutter_form_builder
      3.8.2
  </span>

  <!-- footer-text placeholder -->
</footer>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="static-assets/typeahead.bundle.min.js"></script>
<script src="static-assets/highlight.pack.js"></script>
<script src="static-assets/URI.js"></script>
<script src="static-assets/script.js"></script>
<!-- footer placeholder -->

</body>

</html>
